package com.aacar.interceptor;

public class TranFailException extends RuntimeException {

	private static final long serialVersionUID = -5025319135888177908L;
	private String errorCode = "DEFAULT";
	private String serviceCode;

	public TranFailException(String errorCode, String errorMessage) {
		super(errorMessage);
		this.errorCode = errorCode;
	}
	
	public TranFailException(String errorCode, String errorMessage,String serviceCode) {
		super(errorMessage);
		this.errorCode = errorCode;
		this.serviceCode = serviceCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public String getServiceCode() {
		return serviceCode;
	}

	public void setServiceCode(String serviceCode) {
		this.serviceCode = serviceCode;
	}
	
}
